﻿using System;
using System.Collections.Generic;
using System.Text;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;//引用

namespace E_Commerce.Domain.Entities
{
    /// <summary>
    /// 订单表
    /// </summary>
    [Table("Orders")]
   public class Orders
    {
        [Key]
        public int OrderId { get; set; }
        /// <summary>
        /// 订单编号
        /// </summary>
        public string OrderNumber { get; set; }
        /// <summary>
        /// 地址
        /// </summary>
        public string OrderAdress { get; set; }
        /// <summary>
        /// 邮费
        /// </summary>
        public string Postage { get; set; }
        /// <summary>
        /// 运费险
        /// </summary>
        public int Insurance { get; set; }
        /// <summary>
        /// 备注
        /// </summary>
        public string Remarks { get; set; }
        /// <summary>
        /// 状态
        /// </summary>
        public int OrderStatus { get; set; }
        /// <summary>
        /// 用户ID
        /// </summary>
        public int UserId { get; set; }
        /// <summary>
        /// 商品ID
        /// </summary>
        public int ProductId { get; set; }
    }
}
